@bg-color: rgb(183,212,169);

* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-flow: column;
  padding: 20px;
  transform: translateY(-100px);
  border: 10px solid #000;
  border-radius: 30px;
  background: @bg-color;
}

.stage {
  position: relative;
  width: 300px;
  height: 300px;
  margin-bottom: 20px;
  border: 2px solid #000;
  .snake {
    position: relative;
    .block {
      position: absolute;
      width: 10px;
      height: 10px;
      border: 1px solid @bg-color;
      box-sizing: border-box;
      background: #000;
    }
  }
  .food {
    position: absolute;
    top: 20px;
    width: 10px;
    height: 10px;
    border: 1px solid @bg-color;
    box-sizing: border-box;
    border-radius: 50%;
    background: #000;
    animation: twinkle 1s steps(1) infinite;
    @keyframes twinkle {
      50% {
        opacity: 0;
      }
    }
  }
}

.score-pane {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}